<?php

namespace Compta\FormsBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Compta\FormsBundle\Entity\Transaction
 */
class Transaction
{
    /**
     * @var integer $id
     */
    private $id;   
    
    /**
     * @var float $price
     */
    private $price;

    /**
     * @var text $description
     */
    private $description;

    /**
     * @var date $date
     */
    private $date;


    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set price
     *
     * @param float $price
     */
    public function setPrice($price)
    {
        $this->price = $price;
    }

    /**
     * Get price
     *
     * @return float 
     */
    public function getPrice()
    {
        return $this->price;
    }

    /**
     * Set description
     *
     * @param text $description
     */
    public function setDescription($description)
    {
        $this->description = $description;
    }

    /**
     * Get description
     *
     * @return text 
     */
    public function getDescription()
    {
        return $this->description;
    }

    /**
     * Set date
     *
     * @param date $date
     */
    public function setDate($date)
    {
        $this->date = $date;
    }

    /**
     * Get date
     *
     * @return date 
     */
    public function getDate()
    {
        return $this->date;
    }
    /**
     * @var Compta\FormsBundle\Entity\Category
     */
    private $category;


    /**
     * Set category
     *
     * @param Compta\FormsBundle\Entity\Category $category
     */
    public function setCategory(\Compta\FormsBundle\Entity\Category $category)
    {
        $this->category = $category;
    }

    /**
     * Get category
     *
     * @return Compta\FormsBundle\Entity\Category 
     */
    public function getCategory()
    {
        return $this->category;
    }
    /**
     * @var Compta\FormsBundle\Entity\User
     */
    private $user;


    /**
     * Set user
     *
     * @param Compta\FormsBundle\Entity\User $user
     */
    public function setUser(\Compta\FormsBundle\Entity\User $user)
    {
        $this->user = $user;
    }

    /**
     * Get user
     *
     * @return Compta\FormsBundle\Entity\User 
     */
    public function getUser()
    {
        return $this->user;
    }
}